import request from "../axios/requestMethod.ts";
import type {AxiosResponse} from "axios";


export const useGetBarDataApi = (): Promise<AxiosResponse<any, any>> =>
    request({
        method: "POST",
        url: "/bar"
    })

export const useGetLineDataApi = (): Promise<AxiosResponse<any, any>> =>
    request({
        method: "POST",
        url: "/line"
    })


export const useGetPieDataApi = (): Promise<AxiosResponse<any, any>> =>
    request({
        method: "POST",
        url: "/pie"
    })

export const useGetScatterDataApi = ():Promise<AxiosResponse<any, any>> =>
    request({
        method:"POST",
        url:"/scatter"
    })

export const useGetHeatmapDataApi = ():Promise<AxiosResponse<any, any>> =>
    request({
        method:"POST",
        url:"/heatmap"
    })